﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SFlowerInfoMsg extends IMessageBase
    {
        public var itemCode:int;
        public var fromPlayer:SMiniPlayer;
        public var toPlayerName:String;
        public var anonymous:Boolean;
        public const _type:int = 15157;
        public static var _regist:SFlowerInfoMsg = new SFlowerInfoMsg(true);

        public function SFlowerInfoMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SFlowerInfoMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.itemCode);
            this.fromPlayer.__write(param1);
            param1.writeString(this.toPlayerName);
            param1.writeBool(this.anonymous);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.itemCode = param1.readInt();
            this.fromPlayer = new SMiniPlayer();
            this.fromPlayer.__read(param1);
            this.toPlayerName = param1.readString();
            this.anonymous = param1.readBool();
            return;
        }// end function

    }
}
